import request from '@/utils/request'

// 查询tb_heimingdan_1列表
export function listHmd(query) {
  return request({
    url: '/system/hmd/list',
    method: 'get',
    params: query
  })
}

// 查询tb_heimingdan_1详细
export function getHmd(id) {
  return request({
    url: '/system/hmd/' + id,
    method: 'get'
  })
}

// 新增tb_heimingdan_1
export function addHmd(data) {
  return request({
    url: '/system/hmd',
    method: 'post',
    data: data
  })
}

// 修改tb_heimingdan_1
export function updateHmd(data) {
  return request({
    url: '/system/hmd',
    method: 'put',
    data: data
  })
}

// 删除tb_heimingdan_1
export function delHmd(id) {
  return request({
    url: '/system/hmd/' + id,
    method: 'delete'
  })
}

// 查询白名单列表
export function listBmd(query) {
  return request({
    url: '/system/bmd/list',
    method: 'get',
    params: query
  })
}

// 查询白名单详细
export function getBmd(id) {
  return request({
    url: '/system/bmd/' + id,
    method: 'get'
  })
}

// 新增白名单
export function addBmd(data) {
  return request({
    url: '/system/bmd',
    method: 'post',
    data: data
  })
}

// 修改白名单
export function updateBmd(data) {
  return request({
    url: '/system/bmd',
    method: 'put',
    data: data
  })
}

// 删除白名单
export function delBmd(id) {
  return request({
    url: '/system/bmd/' + id,
    method: 'delete'
  })
}

